import axios from '@/libs/api.request'

// 获取场馆
export const findAllStaf = (data) => {
  return axios.request({
    url: '/admin/store/findAll',
    method: 'get'
  })
}

// 添加店员
export const addStaff = (data) => {
  return axios.request({
    url: '/admin/user/create',
    data,
    method: 'post'
  })
}

// 修改店员
export const updateStaff = (data) => {
  return axios.request({
    url: '/admin/user/update',
    data,
    method: 'post'
  })
}

// 删除店员
export const deleteStaff = (id) => {
  return axios.request({
    url: `/admin/user/delete/${id}`,
    method: 'get'
  })
}

// 店员列表
export const staffList = (data) => {
  return axios.request({
    url: '/admin/user/page',
    data,
    method: 'post'
  })
}
